package com.ohuang.myrouter;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;


import com.ohuang.router_compiler.Router;
import com.ohuang.router_compiler.util.RouterUtil;

@Router(path = "a/b")
public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

    }

    public void start(View view) {
       startActivity(new Intent(this,RouterUtil.getInstance().getClassForPath("a/b")));
    }
}